package com.learn.eduauth.feign;

import com.learn.eduapi.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("edu-user-boot")
public interface UserClient {

    @RequestMapping("/user/load/{username}")
    ResponseEntity<User> getUserByUsername(@PathVariable("username") String username);
}
